|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Carl Rannseier
Caldari Trust Foundation Liberi Fatales
|
Posted - 2010.07.10 08:38:00 -
[1]
Nice work u did there, although u might want to change the lines 588 and 628 of "includes/bbcode.php" to this:
Quote:
582function bbcode_second_pass_eveitem($itemname) 583{ 584global $db, $phpbb_root_path; 585 586$sql = 'SELECT * 587FROM eve_items 588WHERE itemName = "' . $db->sql_escape($itemname) . '"'; 589$result = $db->sql_query($sql); 590$row = $db->sql_fetchrow($result); 591$db->sql_freeresult($result); 592 593$preview_array = array(2,6,18,23,40); 594$return_string = $itemname; ...
line 628 is the same for the system name. that way it is using phpbb's built in database methods and u don't have to bother what db driver actually is used. i came across this since i'm using mysqli.
keep up the great work m8, really appreciate it. ________________________________________ There are 10 types of people, those that understand binary and those that don't... |
Carl Rannseier
Caldari Trust Foundation Liberi Fatales
|
Posted - 2010.07.17 03:02:00 -
[2]
Edited by: Carl Rannseier on 17/07/2010 03:02:08 @ Gerin Tell: I can't help ya here, i think for this you have to ask Cyerus. I actually think that you have to do all the work again cos he has rewritten pretty much all of the code so it might be easier setting it up from scratch again.
@DiLantius: You have to update your board template if you want those functions to work properly. The mod ships with the prosilver template only so this is the only one that actually works when you initially install it. The files that need to be modified are:
- prosilver based templates
- posting_buttons.html
- ucp_avatar_options.html
- ucp_profile_reg_details.html
- ucp_register.html
- subsilver2 based templates
- posting_buttons.html
- ucp_profile_avatar.html
- ucp_profile_reg_details.html
- ucp_register.html
You can tell what style was used to create the one you are using by looking up those files in the "phpbb/styles/<your_style>/template" folder. check if there is either ucp_avatar_options.html (prosilver) or ucp_profile_avatar.html (subsilver2). If it is prosilver based then simply follow the steps that can be found in the install_api_registration_4.0.xml file. it's well structured and easy to read. For a subsilver based style i don't have any instructions ready but you can contact me ingame and we can figure out how to get your board running correctly with this mod. ________________________________________ There are 10 types of people, those that understand binary and those that don't... |
Carl Rannseier
Caldari Trust Foundation Liberi Fatales
|
Posted - 2010.07.17 11:34:00 -
[3]
I recommend creating a backup of your database before creating the cron job as it's always a good idea to have one.
Quote: Step1: You must log into your server's SSH portal. Typically that information is made available on request if your able to do so. ssh [email protected] It then asks for password... and may require a signature approval or encryption key addition.
Windows users should actually google for "putty" and download it, as it is the most used ssh client for windows users. the ssh command itself only runs on unix based operating systems.
Quote: type this crontab -e
You'll be dumped into a VI Text editor...
type i Use the arrow keys to type the following: 00 00 * * * /usr/bin/php5 -q web/forums/directory/api_mod.php 00 12 * * * /usr/bin/php5 -q web/forums/directory/api_mod.php
hit the ESC Key then SHIFT : (colon). Then type x Hit Enter Your done.
As some installations of php don't change the working directory you should go a more failsafe way. use the editor of your choice to create a new file and simply name it api_cron without any endings. Copy and paste the following into the file:
Quote:
#!/bin/sh cd path/to/phpbb /usr/bin/php5 api_cron.php
make sure to change the "path/to/phpbb" part according to the location where phpbb is located on the webserver and upload the file. Make the uploaded file executable for the user(owner) and group by either using the FTP client or type "chmod ug+x path/to/api_cron" in the console.
now go ahead creating the crontab as described by Drake Draconis. Depending on the linux installation it might ask you what editor to use, i would recommend pico or nano if available rather than vi as vi is pretty hard to use for newbies. Once you edit the file one line is sufficient to run the script every 12 hours:
Quote: 0 */12 * * * path/to/api_cron
this kicks the job into action every 12 hours too and there's no need for a second line. ________________________________________ There are 10 types of people, those that understand binary and those that don't... |
Carl Rannseier
Caldari Trust Foundation Liberi Fatales
|
Posted - 2010.07.18 01:00:00 -
[4]
Have you checked the ACP -> General -> Avatar settings? You have to enable EVE avatars there.
About Kill information i don't know anything. That might be another mod as this one only uses the API to validate whether the user is allowed or not. ________________________________________ There are 10 types of people, those that understand binary and those that don't... |
Carl Rannseier
Caldari Trust Foundation Liberi Fatales
|
Posted - 2010.07.28 12:14:00 -
[5]
Try using the UCP for your admin account. I also have troubles using the acp to modify api information. ________________________________________ There are 10 types of people, those that understand binary and those that don't... |
Carl Rannseier
Caldari Trust Foundation Liberi Fatales
|
Posted - 2010.08.23 16:51:00 -
[6]
looks like you forgot to insert the new database tables located in the sql directory. ________________________________________ There are 10 types of people, those that understand binary and those that don't... |
|
|
|